using System;

namespace DeSleeper.Client.WakeUp
{
    internal class ServiceResult
    {
        public static ServiceResult Success
        {
            get
            {
                return new ServiceResult { AuthenticationFailed = false };
            }
        }

        public static ServiceResult CreateAuthenticationFailure(Exception exception)
        {
            return new ServiceResult
                       {
                           AuthenticationFailed = true,
                           InnerException = exception
                       };
        }

        public bool AuthenticationFailed { get; private set; }
        public Exception InnerException { get; private set; }
    }
}